package com.zhao.sparkstreaming.sgg.utils

import java.io.InputStreamReader
import java.util.Properties

/**
 * Description: <br/>
 * Copyright (c) ，2020 ， 赵 <br/>
 * This program is protected by copyright laws. <br/>
 * Date： 2020/12/4 14:01
 *
 * @author 柒柒
 * @version : 1.0
 */

object PropertiesUtil {
  def load(proertiesName: String) ={
    val prop: Properties = new Properties()
    prop.load(new
        InputStreamReader(Thread.currentThread().getContextClassLoader.getResourceAsStream(proertiesName),"UTF-8"))
    prop
  }
}
